package com.pan.feign;


import com.pan.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("stock-server")
public interface StockFeign {


    @GetMapping("/getGoodsCount/{goodsId}")
    public Result<Long> getGoodsCount(@PathVariable Long goodsId);



}
